package com.hxzy.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.common.core.domain.entity.CmsCategory;

import com.hxzy.common.core.domain.entity.SysDictType;
import com.hxzy.system.domain.dto.CategoryListDto;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 64689
 */
@Mapper
public interface CmsCategoryMapper  extends BaseMapper<CmsCategory> {




    List<CmsCategory> selectMenuList(CategoryListDto categoryListDto);

    CmsCategory selectByTitle(String categoryTitle);


    List<SysDictType> selectTitleAll();

    CmsCategory selectDeptById(Long id);

    boolean updateBy(CmsCategory category);

    boolean hasChildById(Long id);

    List<CmsCategory> selectBy(String categoryTitle);
}
